import java.util.ArrayList;
import java.util.Random;
public class Group {
    private String name;
    public ArrayList<Student> students;
    public Group(String name){
        this.name = name;
        students = new ArrayList<>();
    }
    public void  addStudent(Student student){
       students.add(student);
    }
    public Student selectStudent() {
        Random random = new Random();
        int index = random.nextInt(students.size());
        return students.get(index);
    }
}
